import { createStore, applyMiddleware } from 'redux'

//导入纯函数
import reducer from './reducer'
//导入logger
import logger from 'redux-logger'

//创建store实例(在整个应用中是唯一），可以为整个应用的组件共享
// export default createStore
export default createStore(reducer, applyMiddleware(logger) );